package cn.fuego.busrental.ui.StyleTour;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import cn.fuego.busrental.R;
import cn.fuego.common.log.FuegoLog;

import cn.fuego.misp.ui.common.edit.MispEditParameter;
import cn.fuego.misp.ui.common.edit.MispTextEditActivity;

public class InfoEditActivity extends MispTextEditActivity
{
	private FuegoLog log = FuegoLog.getLog(getClass());
	private String content;
	private TextView contentView;
	
	
	public static void jump(Activity activity,MispEditParameter parameter,int code,String content)
	{
		
 		Intent intent = new Intent();
 		intent.setClass(activity, InfoEditActivity.class);
 		intent.putExtra(MispTextEditActivity.JUMP_DATA, parameter);
 		intent.putExtra("zhu", content);
 		activity.startActivityForResult(intent,code);

  	}
	
	@Override
	public void initRes()
	{		
		super.initRes();
		this.activityRes.setAvtivityView(R.layout.info_text_edit);
		content=(String) this.getIntent().getSerializableExtra("zhu");	
		log.info("start InfoEditActivity, content is "+content);
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);	
		contentView = (TextView)this.findViewById(R.id.info_text);
		contentView.setText(content);
	}
}
